#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QThread>
#include "worker.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE



class Widget : public QWidget
{
    Q_OBJECT
public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

Q_SIGNALS:
    void signAutoConnection(const QString & desc);
    void signDirectConnection(const QString & desc);
    void signQueuedConnection(const QString & desc);
    void signBlockingQueuedConnection(const QString & desc);
    void signUniqueConnection(const QString & desc);

private slots:
    void on_btnAutoConnection_clicked();
    void on_btnDirectConnection_clicked();
    void on_btnQueuedConnection_clicked();
    void on_btnBlockingQueuedConnection_clicked();
    void on_btnUniqueConnection_clicked();
private:
    Ui::Widget *ui;
    QThread thread;
    Worker * worker;
};
#endif // WIDGET_H
